#include "yigcursor.h"

YigCursor::YigCursor(QString _userName) :
    userName(_userName, this)
{
    setPixmap(QPixmap(":/images/graphics/Cursor.png"));
    userName.moveBy( 0, 15);
    QFont labelFont("monaco", 10);
    userName.setFont(labelFont);
    userName.setFlag( QGraphicsItem::ItemIsSelectable, false );
    userName.setFlag( QGraphicsItem::ItemIsMovable, false );
    userName.setCacheMode(QGraphicsItem::DeviceCoordinateCache);
    setFlag( QGraphicsItem::ItemIsSelectable, false );
    setFlag( QGraphicsItem::ItemIsMovable, false );
    setZValue(9999999);
}
